// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'


//引入axios
import axios from "axios";
//配置axios的基础路径：每次发送axios请求之前，都要加上这个基础路径
axios.defaults.baseURL="https://www.fastmock.site/mock/0fd5b1c65e35cde350a33e2850fc54d1/hoemwork";
//配置axios的全局属性：在.vue页面中不在引入axios使用this.$http获取axios对象
Vue.prototype.$http = axios;


//引入element ui

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.config.productionTip = false

Vue.use(ElementUI);



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
